package com.emep.changzhi.analyse.entity.information;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author Wangcc
 * @version V1.0
 * @Description: 消息推送记录表
 * @date 2018/2/27 16:22
 */
@Data
@Table(name = "data_message_record_warning")
@Entity
public class DataMessageRecordWarning2 implements Serializable{

    private static final long serialVersionUID = 6632626257205260891L;

    @Id
    @GenericGenerator(name = "system-uuid" , strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String id;
    @Column(name = "template_id",columnDefinition="varchar(100) COMMENT '模版id'" )
    private String templateId;
    @Column(name = "area_code",columnDefinition="varchar(100) COMMENT '辖区行政编码'" )
    private String areaCode;
    @Column(name = "Prompt_id",columnDefinition="varchar(100) COMMENT '报警信息id'" )
    private String PromptId;
    @Column(name = "equipment_id",columnDefinition="varchar(100) COMMENT '设备id'" )
    private String equipmentId;
    @Column(name = "send_date",columnDefinition="varchar(100) COMMENT '发送时间'" )
    private String sendDate;
    @Column(name = "push_content",columnDefinition="varchar(100) COMMENT '推送内容'" )
    private String pushContent;
    @Column(name = "create_date",columnDefinition="varchar(100) COMMENT '录入时间'" )
    private String createDate = String.valueOf(System.currentTimeMillis());
    @Column(name = "is_delete",columnDefinition="varchar(100) COMMENT '是否删除'" )
    private String isDelete = "0";


}
